package at.codebase.security;

import at.codebase.core.BitFlags;

/**
 * 
 * 
 * @author Daniel Marth <danielmarth@gmx.at>
 */
public class Authorization {
	
	private BitFlags flags;
	
	public Authorization() {
		this(new BitFlags());
	}
	
	public Authorization(BitFlags f) {
		flags = f;
	}
	
	public Authorization(Authorization other) {
		flags = other.flags;
	}
	
	public boolean suffices(final Authorization other) {
		return (flags.and(other.flags)).equals(other.flags);
	}
	
}
